package com.icatw.blog.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.icatw.common.annotation.Excel;
import com.icatw.common.core.domain.BaseEntity;

/**
 * 音乐管理对象 ms_music
 * 
 * @author icatw
 * @date 2022-09-13
 */
public class Music extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 歌名 */
    @Excel(name = "歌名")
    private String name;

    /** 歌手名 */
    @Excel(name = "歌手名")
    private String artist;

    /** 歌曲地址（url外链） */
    @Excel(name = "歌曲地址", readConverterExp = "u=rl外链")
    private String url;

    /** 歌曲封面 */
    @Excel(name = "歌曲封面")
    private String cover;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setArtist(String artist) 
    {
        this.artist = artist;
    }

    public String getArtist() 
    {
        return artist;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setCover(String cover) 
    {
        this.cover = cover;
    }

    public String getCover() 
    {
        return cover;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("artist", getArtist())
            .append("url", getUrl())
            .append("cover", getCover())
            .toString();
    }
}
